import Vue from 'vue'
import App from './App.vue'
import VueRouter from 'vue-router'
import axios from 'axios'
Vue.prototype.$http=axios

import Swiper from "swiper"


// 引入mint-ui组件
import Mint from 'mint-ui';
Vue.use(Mint);
//为了每个实例对象
Vue.use( VueRouter);

import router from './assets/js/router.js'
import './assets/js/vue.js'

import '../node_modules/mint-ui/lib/index.js'
import '../node_modules/mint-ui/lib/style.css'

// import './assets/bootstrap-3.3.7-dist/css/bootstrap.css'
// import './assets/bootstrap-3.3.7-dist/js/bootstrap.js'

// l轮播图
import { Swipe, SwipeItem } from 'mint-ui';
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);

// 引入tab-containert容器
import { TabContainer, TabContainerItem } from 'mint-ui';

Vue.component(TabContainer.name, TabContainer);
Vue.component(TabContainerItem.name, TabContainerItem);

// 切换table栏
import { Navbar, TabItem } from 'mint-ui';
Vue.component(Navbar.name, Navbar);
Vue.component(TabItem.name, TabItem);

// swiper
import VueAwesomeSwiper from 'vue-awesome-swiper'
import '../node_modules/swiper/swiper-bundle.css'
Vue.use(VueAwesomeSwiper)

// 弹出框
import { Popup } from 'mint-ui';
Vue.component(Popup.name, Popup);



new Vue({
  el: '#app',
  render: h => h(App),
    router
})
